package id.net.iconpln.bb.server;

import id.net.iconpln.bb.client.service.PortRPCService;
import id.net.iconpln.bb.server.service.PortService;
import id.net.iconpln.bb.server.service.ReportService;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

@Repository
public class PortRPCServiceImpl extends RemoteServiceServlet implements PortRPCService{
	/**
	 * 
	 */
	private static final long serialVersionUID = 7583394699530242714L;
	@Autowired private PortService portService;
	@Autowired private ReportService reportService;

	@Override
	public List<Map> getListPengiriman(String kode, Map map) {
		// TODO Auto-generated method stub
		return portService.getListPengiriman(kode, map);
	}

	@Override
	public List<Map> getMaster(String kode, Map map) {
		// TODO Auto-generated method stub
		return portService.getMaster(kode, map);
	}

	@Override
	public List<Map> insertDermagaBb(String kode, Map map) {
		// TODO Auto-generated method stub
		System.out.println("kode " + kode);
		return portService.insertDermagaBb(kode, map);
	}

	@Override
	public List<Map> getListDermagaBy(String kode, Map map) {
		// TODO Auto-generated method stub
		return portService.getListDermagaBy(kode, map);
	}
	
	@Override
	public List<Map> getLaporanBaBongkar(String kode, Map map) {
		// TODO Auto-generated method stub
		return reportService.getLaporanBaBongkar(kode, map);
	}
	
	
}
